home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacOS Resource Fork
(archive/rsrc).
id metadata |
---|
key | value |
---|
macFileType | [clpt] |
macFileCreator | [drag] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 05 16 07 00 02 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 02 00 00 00 09 00 00 |........|........|
|00000020| 00 32 00 00 00 20 00 00 | 00 02 00 00 00 52 00 00 |.2... ..|.....R..|
|00000030| 0e 69 63 6c 70 74 64 72 | 61 67 01 00 00 00 00 00 |.iclptdr|ag......|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 01 00 00 00 | 0e 23 00 00 0d 23 00 00 |........|.#...#..|
|00000060| 00 46 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.F......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000080| 00 00 17 53 65 74 53 70 | 72 69 74 65 50 72 6f 70 |...SetSp|riteProp|
|00000090| 65 72 74 69 65 73 2e 63 | 6c 70 70 6c 70 6c 70 70 |erties.c|lpplplpp|
|000000a0| 70 79 02 00 63 6c 70 74 | 64 72 61 67 01 00 00 40 |py..clpt|drag...@|
|000000b0| 01 01 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 b5 40 ee 21 | 00 00 00 00 00 00 0e 69 |.....@.!|.......i|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 0c fb 09 2f | 2f 2f 2f 2f 2f 2f 2f 2f |......./|////////|
|00000160| 2f 0d 09 2f 2f 0d 09 2f | 2f 20 61 64 64 20 73 61 |/..//../|/ add sa|
|00000170| 6d 70 6c 65 73 20 74 6f | 20 74 68 65 20 73 70 72 |mples to| the spr|
|00000180| 69 74 65 20 74 72 61 63 | 6b 27 73 20 6d 65 64 69 |ite trac|k's medi|
|00000190| 61 0d 09 2f 2f 0d 09 2f | 2f 2f 2f 2f 2f 2f 2f 2f |a..//../|////////|
|000001a0| 2f 0d 09 0d 09 42 65 67 | 69 6e 4d 65 64 69 61 45 |/....Beg|inMediaE|
|000001b0| 64 69 74 73 28 6d 79 4d | 65 64 69 61 29 3b 0d 0d |dits(myM|edia);..|
|000001c0| 09 2f 2f 20 67 6f 20 74 | 6f 20 62 65 67 69 6e 6e |.// go t|o beginn|
|000001d0| 69 6e 67 20 62 75 74 74 | 6f 6e 20 77 69 74 68 20 |ing butt|on with |
|000001e0| 6e 6f 20 61 63 74 69 6f | 6e 73 0d 09 6d 79 45 72 |no actio|ns..myEr|
|000001f0| 72 20 3d 20 51 54 4e 65 | 77 41 74 6f 6d 43 6f 6e |r = QTNe|wAtomCon|
|00000200| 74 61 69 6e 65 72 28 26 | 6d 79 42 65 67 69 6e 42 |tainer(&|myBeginB|
|00000210| 75 74 74 6f 6e 29 3b 0d | 09 69 66 20 28 6d 79 45 |utton);.|.if (myE|
|00000220| 72 72 20 21 3d 20 6e 6f | 45 72 72 29 0d 09 09 67 |rr != no|Err)...g|
|00000230| 6f 74 6f 20 62 61 69 6c | 3b 0d 09 6d 79 4c 6f 63 |oto bail|;..myLoc|
|00000240| 61 74 69 6f 6e 2e 68 09 | 3d 20 28 31 20 2a 20 6b |ation.h.|= (1 * k|
|00000250| 53 70 72 69 74 65 54 72 | 61 63 6b 57 69 64 74 68 |SpriteTr|ackWidth|
|00000260| 20 2f 20 38 29 20 2d 20 | 28 6b 53 74 61 72 74 45 | / 8) - |(kStartE|
|00000270| 6e 64 42 75 74 74 6f 6e | 57 69 64 74 68 20 2f 20 |ndButton|Width / |
|00000280| 32 29 3b 0d 09 6d 79 4c | 6f 63 61 74 69 6f 6e 2e |2);..myL|ocation.|
|00000290| 76 09 3d 20 28 34 20 2a | 20 6b 53 70 72 69 74 65 |v.= (4 *| kSprite|
|000002a0| 54 72 61 63 6b 48 65 69 | 67 68 74 20 2f 20 35 29 |TrackHei|ght / 5)|
|000002b0| 20 2d 20 28 6b 53 74 61 | 72 74 45 6e 64 42 75 74 | - (kSta|rtEndBut|
|000002c0| 74 6f 6e 48 65 69 67 68 | 74 20 2f 20 32 29 3b 0d |tonHeigh|t / 2);.|
|000002d0| 09 69 73 56 69 73 69 62 | 6c 65 09 09 3d 20 66 61 |.isVisib|le..= fa|
|000002e0| 6c 73 65 3b 0d 09 6d 79 | 4c 61 79 65 72 09 09 09 |lse;..my|Layer...|
|000002f0| 3d 20 31 3b 0d 09 6d 79 | 49 6e 64 65 78 09 09 09 |= 1;..my|Index...|
|00000300| 3d 20 6b 47 6f 54 6f 42 | 65 67 69 6e 6e 69 6e 67 |= kGoToB|eginning|
|00000310| 42 75 74 74 6f 6e 55 70 | 49 6e 64 65 78 3b 0d 09 |ButtonUp|Index;..|
|00000320| 6d 79 45 72 72 20 3d 20 | 53 65 74 53 70 72 69 74 |myErr = |SetSprit|
|00000330| 65 44 61 74 61 28 6d 79 | 42 65 67 69 6e 42 75 74 |eData(my|BeginBut|
|00000340| 74 6f 6e 2c 0d 09 09 09 | 09 09 09 26 6d 79 4c 6f |ton,....|...&myLo|
|00000350| 63 61 74 69 6f 6e 2c 09 | 2f 2a 20 73 70 72 69 74 |cation,.|/* sprit|
|00000360| 65 20 6c 6f 63 61 74 69 | 6f 6e 20 2a 2f 0d 09 09 |e locati|on */...|
|00000370| 09 09 09 09 26 69 73 56 | 69 73 69 62 6c 65 2c 09 |....&isV|isible,.|
|00000380| 09 2f 2a 20 73 70 72 69 | 74 65 20 76 69 73 69 62 |./* spri|te visib|
|00000390| 6c 65 20 70 72 6f 70 65 | 72 74 79 20 2a 2f 0d 09 |le prope|rty */..|
|000003a0| 09 09 09 09 09 26 6d 79 | 4c 61 79 65 72 2c 09 09 |.....&my|Layer,..|
|000003b0| 2f 2a 20 73 70 72 69 74 | 65 20 6c 61 79 65 72 20 |/* sprit|e layer |
|000003c0| 28 73 6d 61 6c 6c 65 72 | 20 23 27 73 20 61 72 65 |(smaller| #'s are|
|000003d0| 20 66 75 72 74 68 65 72 | 20 66 6f 72 77 61 72 64 | further| forward|
|000003e0| 29 20 2a 2f 0d 09 09 09 | 09 09 09 26 6d 79 49 6e |) */....|...&myIn|
|000003f0| 64 65 78 2c 09 09 2f 2a | 20 73 70 72 69 74 65 20 |dex,../*| sprite |
|00000400| 69 6e 64 65 78 20 70 72 | 6f 70 65 72 74 79 20 2a |index pr|operty *|
|00000410| 2f 0d 09 09 09 09 09 09 | 4e 55 4c 4c 2c 0d 09 09 |/.......|NULL,...|
|00000420| 09 09 09 09 4e 55 4c 4c | 2c 0d 09 09 09 09 09 09 |....NULL|,.......|
|00000430| 6d 79 41 63 74 69 6f 6e | 73 29 3b 0d 09 69 66 20 |myAction|s);..if |
|00000440| 28 6d 79 45 72 72 20 21 | 3d 20 6e 6f 45 72 72 29 |(myErr !|= noErr)|
|00000450| 0d 09 09 67 6f 74 6f 20 | 62 61 69 6c 3b 0d 0d 09 |...goto |bail;...|
|00000460| 2f 2f 20 67 6f 20 74 6f | 20 70 72 65 76 69 6f 75 |// go to| previou|
|00000470| 73 20 62 75 74 74 6f 6e | 20 77 69 74 68 20 6e 6f |s button| with no|
|00000480| 20 61 63 74 69 6f 6e 73 | 0d 09 6d 79 45 72 72 20 | actions|..myErr |
|00000490| 3d 20 51 54 4e 65 77 41 | 74 6f 6d 43 6f 6e 74 61 |= QTNewA|tomConta|
|000004a0| 69 6e 65 72 28 26 6d 79 | 50 72 65 76 42 75 74 74 |iner(&my|PrevButt|
|000004b0| 6f 6e 29 3b 0d 09 69 66 | 20 28 6d 79 45 72 72 20 |on);..if| (myErr |
|000004c0| 21 3d 20 6e 6f 45 72 72 | 29 0d 09 09 67 6f 74 6f |!= noErr|)...goto|
|000004d0| 20 62 61 69 6c 3b 0d 09 | 6d 79 4c 6f 63 61 74 69 | bail;..|myLocati|
|000004e0| 6f 6e 2e 68 20 09 3d 20 | 28 33 20 2a 20 6b 53 70 |on.h .= |(3 * kSp|
|000004f0| 72 69 74 65 54 72 61 63 | 6b 57 69 64 74 68 20 2f |riteTrac|kWidth /|
|00000500| 20 38 29 20 2d 20 28 6b | 4e 65 78 74 50 72 65 76 | 8) - (k|NextPrev|
|00000510| 42 75 74 74 6f 6e 57 69 | 64 74 68 20 2f 20 32 29 |ButtonWi|dth / 2)|
|00000520| 3b 0d 09 6d 79 4c 6f 63 | 61 74 69 6f 6e 2e 76 09 |;..myLoc|ation.v.|
|00000530| 3d 20 28 34 20 2a 20 6b | 53 70 72 69 74 65 54 72 |= (4 * k|SpriteTr|
|00000540| 61 63 6b 48 65 69 67 68 | 74 20 2f 20 35 29 20 2d |ackHeigh|t / 5) -|
|00000550| 20 28 6b 53 74 61 72 74 | 45 6e 64 42 75 74 74 6f | (kStart|EndButto|
|00000560| 6e 48 65 69 67 68 74 20 | 2f 20 32 29 3b 0d 09 69 |nHeight |/ 2);..i|
|00000570| 73 56 69 73 69 62 6c 65 | 09 09 3d 20 66 61 6c 73 |sVisible|..= fals|
|00000580| 65 3b 0d 09 6d 79 4c 61 | 79 65 72 09 09 09 3d 20 |e;..myLa|yer...= |
|00000590| 31 3b 0d 09 6d 79 49 6e | 64 65 78 09 09 09 3d 20 |1;..myIn|dex...= |
|000005a0| 6b 47 6f 54 6f 50 72 65 | 76 42 75 74 74 6f 6e 55 |kGoToPre|vButtonU|
|000005b0| 70 49 6e 64 65 78 3b 0d | 09 6d 79 45 72 72 20 3d |pIndex;.|.myErr =|
|000005c0| 20 53 65 74 53 70 72 69 | 74 65 44 61 74 61 28 6d | SetSpri|teData(m|
|000005d0| 79 50 72 65 76 42 75 74 | 74 6f 6e 2c 20 26 6d 79 |yPrevBut|ton, &my|
|000005e0| 4c 6f 63 61 74 69 6f 6e | 2c 20 26 69 73 56 69 73 |Location|, &isVis|
|000005f0| 69 62 6c 65 2c 20 26 6d | 79 4c 61 79 65 72 2c 20 |ible, &m|yLayer, |
|00000600| 26 6d 79 49 6e 64 65 78 | 2c 20 4e 55 4c 4c 2c 20 |&myIndex|, NULL, |
|00000610| 4e 55 4c 4c 2c 20 6d 79 | 41 63 74 69 6f 6e 73 29 |NULL, my|Actions)|
|00000620| 3b 0d 09 69 66 20 28 6d | 79 45 72 72 20 21 3d 20 |;..if (m|yErr != |
|00000630| 6e 6f 45 72 72 29 0d 09 | 09 67 6f 74 6f 20 62 61 |noErr)..|.goto ba|
|00000640| 69 6c 3b 0d 0d 09 2f 2f | 20 67 6f 20 74 6f 20 6e |il;...//| go to n|
|00000650| 65 78 74 20 62 75 74 74 | 6f 6e 20 77 69 74 68 20 |ext butt|on with |
|00000660| 6e 6f 20 61 63 74 69 6f | 6e 73 0d 09 6d 79 45 72 |no actio|ns..myEr|
|00000670| 72 20 3d 20 51 54 4e 65 | 77 41 74 6f 6d 43 6f 6e |r = QTNe|wAtomCon|
|00000680| 74 61 69 6e 65 72 28 26 | 6d 79 4e 65 78 74 42 75 |tainer(&|myNextBu|
|00000690| 74 74 6f 6e 29 3b 0d 09 | 69 66 20 28 6d 79 45 72 |tton);..|if (myEr|
|000006a0| 72 20 21 3d 20 6e 6f 45 | 72 72 29 0d 09 09 67 6f |r != noE|rr)...go|
|000006b0| 74 6f 20 62 61 69 6c 3b | 0d 09 6d 79 4c 6f 63 61 |to bail;|..myLoca|
|000006c0| 74 69 6f 6e 2e 68 20 09 | 3d 20 28 35 20 2a 20 6b |tion.h .|= (5 * k|
|000006d0| 53 70 72 69 74 65 54 72 | 61 63 6b 57 69 64 74 68 |SpriteTr|ackWidth|
|000006e0| 20 2f 20 38 29 20 2d 20 | 28 6b 4e 65 78 74 50 72 | / 8) - |(kNextPr|
|000006f0| 65 76 42 75 74 74 6f 6e | 57 69 64 74 68 20 2f 20 |evButton|Width / |
|00000700| 32 29 3b 0d 09 6d 79 4c | 6f 63 61 74 69 6f 6e 2e |2);..myL|ocation.|
|00000710| 76 09 3d 20 28 34 20 2a | 20 6b 53 70 72 69 74 65 |v.= (4 *| kSprite|
|00000720| 54 72 61 63 6b 48 65 69 | 67 68 74 20 2f 20 35 29 |TrackHei|ght / 5)|
|00000730| 20 2d 20 28 6b 53 74 61 | 72 74 45 6e 64 42 75 74 | - (kSta|rtEndBut|
|00000740| 74 6f 6e 48 65 69 67 68 | 74 20 2f 20 32 29 3b 0d |tonHeigh|t / 2);.|
|00000750| 09 69 73 56 69 73 69 62 | 6c 65 09 09 3d 20 66 61 |.isVisib|le..= fa|
|00000760| 6c 73 65 3b 0d 09 6d 79 | 4c 61 79 65 72 09 09 09 |lse;..my|Layer...|
|00000770| 3d 20 31 3b 0d 09 6d 79 | 49 6e 64 65 78 09 09 09 |= 1;..my|Index...|
|00000780| 3d 20 6b 47 6f 54 6f 4e | 65 78 74 42 75 74 74 6f |= kGoToN|extButto|
|00000790| 6e 55 70 49 6e 64 65 78 | 3b 0d 09 6d 79 45 72 72 |nUpIndex|;..myErr|
|000007a0| 20 3d 20 53 65 74 53 70 | 72 69 74 65 44 61 74 61 | = SetSp|riteData|
|000007b0| 28 6d 79 4e 65 78 74 42 | 75 74 74 6f 6e 2c 20 26 |(myNextB|utton, &|
|000007c0| 6d 79 4c 6f 63 61 74 69 | 6f 6e 2c 20 26 69 73 56 |myLocati|on, &isV|
|000007d0| 69 73 69 62 6c 65 2c 20 | 26 6d 79 4c 61 79 65 72 |isible, |&myLayer|
|000007e0| 2c 20 26 6d 79 49 6e 64 | 65 78 2c 20 4e 55 4c 4c |, &myInd|ex, NULL|
|000007f0| 2c 20 4e 55 4c 4c 2c 20 | 6d 79 41 63 74 69 6f 6e |, NULL, |myAction|
|00000800| 73 29 3b 0d 09 69 66 20 | 28 6d 79 45 72 72 20 21 |s);..if |(myErr !|
|00000810| 3d 20 6e 6f 45 72 72 29 | 0d 09 09 67 6f 74 6f 20 |= noErr)|...goto |
|00000820| 62 61 69 6c 3b 0d 0d 09 | 2f 2f 20 67 6f 20 74 6f |bail;...|// go to|
|00000830| 20 65 6e 64 20 62 75 74 | 74 6f 6e 20 77 69 74 68 | end but|ton with|
|00000840| 20 6e 6f 20 61 63 74 69 | 6f 6e 73 0d 09 6d 79 45 | no acti|ons..myE|
|00000850| 72 72 20 3d 20 51 54 4e | 65 77 41 74 6f 6d 43 6f |rr = QTN|ewAtomCo|
|00000860| 6e 74 61 69 6e 65 72 28 | 26 6d 79 45 6e 64 42 75 |ntainer(|&myEndBu|
|00000870| 74 74 6f 6e 29 3b 0d 09 | 69 66 20 28 6d 79 45 72 |tton);..|if (myEr|
|00000880| 72 20 21 3d 20 6e 6f 45 | 72 72 29 0d 09 09 67 6f |r != noE|rr)...go|
|00000890| 74 6f 20 62 61 69 6c 3b | 0d 09 6d 79 4c 6f 63 61 |to bail;|..myLoca|
|000008a0| 74 69 6f 6e 2e 68 20 09 | 3d 20 28 37 20 2a 20 6b |tion.h .|= (7 * k|
|000008b0| 53 70 72 69 74 65 54 72 | 61 63 6b 57 69 64 74 68 |SpriteTr|ackWidth|
|000008c0| 20 2f 20 38 29 20 2d 20 | 28 6b 53 74 61 72 74 45 | / 8) - |(kStartE|
|000008d0| 6e 64 42 75 74 74 6f 6e | 57 69 64 74 68 20 2f 20 |ndButton|Width / |
|000008e0| 32 29 3b 0d 09 6d 79 4c | 6f 63 61 74 69 6f 6e 2e |2);..myL|ocation.|
|000008f0| 76 09 3d 20 28 34 20 2a | 20 6b 53 70 72 69 74 65 |v.= (4 *| kSprite|
|00000900| 54 72 61 63 6b 48 65 69 | 67 68 74 20 2f 20 35 29 |TrackHei|ght / 5)|
|00000910| 20 2d 20 28 6b 53 74 61 | 72 74 45 6e 64 42 75 74 | - (kSta|rtEndBut|
|00000920| 74 6f 6e 48 65 69 67 68 | 74 20 2f 20 32 29 3b 0d |tonHeigh|t / 2);.|
|00000930| 09 69 73 56 69 73 69 62 | 6c 65 09 09 3d 20 66 61 |.isVisib|le..= fa|
|00000940| 6c 73 65 3b 0d 09 6d 79 | 4c 61 79 65 72 09 09 09 |lse;..my|Layer...|
|00000950| 3d 20 31 3b 0d 09 6d 79 | 49 6e 64 65 78 09 09 09 |= 1;..my|Index...|
|00000960| 3d 20 6b 47 6f 54 6f 45 | 6e 64 42 75 74 74 6f 6e |= kGoToE|ndButton|
|00000970| 55 70 49 6e 64 65 78 3b | 0d 09 6d 79 45 72 72 20 |UpIndex;|..myErr |
|00000980| 3d 20 53 65 74 53 70 72 | 69 74 65 44 61 74 61 28 |= SetSpr|iteData(|
|00000990| 6d 79 45 6e 64 42 75 74 | 74 6f 6e 2c 20 26 6d 79 |myEndBut|ton, &my|
|000009a0| 4c 6f 63 61 74 69 6f 6e | 2c 20 26 69 73 56 69 73 |Location|, &isVis|
|000009b0| 69 62 6c 65 2c 20 26 6d | 79 4c 61 79 65 72 2c 20 |ible, &m|yLayer, |
|000009c0| 26 6d 79 49 6e 64 65 78 | 2c 20 4e 55 4c 4c 2c 20 |&myIndex|, NULL, |
|000009d0| 4e 55 4c 4c 2c 20 6d 79 | 41 63 74 69 6f 6e 73 29 |NULL, my|Actions)|
|000009e0| 3b 0d 09 69 66 20 28 6d | 79 45 72 72 20 21 3d 20 |;..if (m|yErr != |
|000009f0| 6e 6f 45 72 72 29 0d 09 | 09 67 6f 74 6f 20 62 61 |noErr)..|.goto ba|
|00000a00| 69 6c 3b 0d 0d 09 2f 2f | 20 66 69 72 73 74 20 70 |il;...//| first p|
|00000a10| 65 6e 67 75 69 6e 20 73 | 70 72 69 74 65 20 77 69 |enguin s|prite wi|
|00000a20| 74 68 20 6e 6f 20 61 63 | 74 69 6f 6e 73 0d 09 6d |th no ac|tions..m|
|00000a30| 79 45 72 72 20 3d 20 51 | 54 4e 65 77 41 74 6f 6d |yErr = Q|TNewAtom|
|00000a40| 43 6f 6e 74 61 69 6e 65 | 72 28 26 6d 79 50 65 6e |Containe|r(&myPen|
|00000a50| 67 75 69 6e 4f 6e 65 29 | 3b 0d 09 69 66 20 28 6d |guinOne)|;..if (m|
|00000a60| 79 45 72 72 20 21 3d 20 | 6e 6f 45 72 72 29 0d 09 |yErr != |noErr)..|
|00000a70| 09 67 6f 74 6f 20 62 61 | 69 6c 3b 0d 09 6d 79 4c |.goto ba|il;..myL|
|00000a80| 6f 63 61 74 69 6f 6e 2e | 68 20 09 3d 20 28 33 20 |ocation.|h .= (3 |
|00000a90| 2a 20 6b 53 70 72 69 74 | 65 54 72 61 63 6b 57 69 |* kSprit|eTrackWi|
|00000aa0| 64 74 68 20 2f 20 38 29 | 20 2d 20 28 6b 50 65 6e |dth / 8)| - (kPen|
|00000ab0| 67 75 69 6e 57 69 64 74 | 68 20 2f 20 32 29 3b 0d |guinWidt|h / 2);.|
|00000ac0| 09 6d 79 4c 6f 63 61 74 | 69 6f 6e 2e 76 20 09 3d |.myLocat|ion.v .=|
|00000ad0| 20 28 6b 53 70 72 69 74 | 65 54 72 61 63 6b 48 65 | (kSprit|eTrackHe|
|00000ae0| 69 67 68 74 20 2f 20 34 | 29 20 2d 20 28 6b 50 65 |ight / 4|) - (kPe|
|00000af0| 6e 67 75 69 6e 48 65 69 | 67 68 74 20 2f 20 32 29 |nguinHei|ght / 2)|
|00000b00| 3b 0d 09 69 73 56 69 73 | 69 62 6c 65 09 09 3d 20 |;..isVis|ible..= |
|00000b10| 74 72 75 65 3b 0d 09 6d | 79 4c 61 79 65 72 09 09 |true;..m|yLayer..|
|00000b20| 09 3d 20 32 3b 0d 09 6d | 79 49 6e 64 65 78 09 09 |.= 2;..m|yIndex..|
|00000b30| 09 3d 20 6b 50 65 6e 67 | 75 69 6e 44 6f 77 6e 52 |.= kPeng|uinDownR|
|00000b40| 69 67 68 74 43 79 63 6c | 65 53 74 61 72 74 49 6e |ightCycl|eStartIn|
|00000b50| 64 65 78 3b 0d 09 6d 79 | 47 72 61 70 68 69 63 73 |dex;..my|Graphics|
|00000b60| 4d 6f 64 65 2e 67 72 61 | 70 68 69 63 73 4d 6f 64 |Mode.gra|phicsMod|
|00000b70| 65 20 3d 20 62 6c 65 6e | 64 3b 0d 09 6d 79 47 72 |e = blen|d;..myGr|
|00000b80| 61 70 68 69 63 73 4d 6f | 64 65 2e 6f 70 43 6f 6c |aphicsMo|de.opCol|
|00000b90| 6f 72 2e 72 65 64 20 3d | 20 6d 79 47 72 61 70 68 |or.red =| myGraph|
|00000ba0| 69 63 73 4d 6f 64 65 2e | 6f 70 43 6f 6c 6f 72 2e |icsMode.|opColor.|
|00000bb0| 67 72 65 65 6e 20 3d 20 | 6d 79 47 72 61 70 68 69 |green = |myGraphi|
|00000bc0| 63 73 4d 6f 64 65 2e 6f | 70 43 6f 6c 6f 72 2e 62 |csMode.o|pColor.b|
|00000bd0| 6c 75 65 20 3d 20 30 78 | 38 46 46 46 3b 09 2f 2f |lue = 0x|8FFF;.//|
|00000be0| 20 67 72 65 79 0d 09 6d | 79 45 72 72 20 3d 20 53 | grey..m|yErr = S|
|00000bf0| 65 74 53 70 72 69 74 65 | 44 61 74 61 28 6d 79 50 |etSprite|Data(myP|
|00000c00| 65 6e 67 75 69 6e 4f 6e | 65 2c 20 26 6d 79 4c 6f |enguinOn|e, &myLo|
|00000c10| 63 61 74 69 6f 6e 2c 20 | 26 69 73 56 69 73 69 62 |cation, |&isVisib|
|00000c20| 6c 65 2c 20 26 6d 79 4c | 61 79 65 72 2c 20 26 6d |le, &myL|ayer, &m|
|00000c30| 79 49 6e 64 65 78 2c 20 | 26 6d 79 47 72 61 70 68 |yIndex, |&myGraph|
|00000c40| 69 63 73 4d 6f 64 65 2c | 20 4e 55 4c 4c 2c 20 6d |icsMode,| NULL, m|
|00000c50| 79 41 63 74 69 6f 6e 73 | 29 3b 0d 09 69 66 20 28 |yActions|);..if (|
|00000c60| 6d 79 45 72 72 20 21 3d | 20 6e 6f 45 72 72 29 0d |myErr !=| noErr).|
|00000c70| 09 09 67 6f 74 6f 20 62 | 61 69 6c 3b 0d 09 09 0d |..goto b|ail;....|
|00000c80| 09 2f 2f 20 73 65 63 6f | 6e 64 20 70 65 6e 67 75 |.// seco|nd pengu|
|00000c90| 69 6e 20 73 70 72 69 74 | 65 20 77 69 74 68 20 6e |in sprit|e with n|
|00000ca0| 6f 20 61 63 74 69 6f 6e | 73 0d 09 6d 79 45 72 72 |o action|s..myErr|
|00000cb0| 20 3d 20 51 54 4e 65 77 | 41 74 6f 6d 43 6f 6e 74 | = QTNew|AtomCont|
|00000cc0| 61 69 6e 65 72 28 26 6d | 79 50 65 6e 67 75 69 6e |ainer(&m|yPenguin|
|00000cd0| 54 77 6f 29 3b 0d 09 69 | 66 20 28 6d 79 45 72 72 |Two);..i|f (myErr|
|00000ce0| 20 21 3d 20 6e 6f 45 72 | 72 29 0d 09 09 67 6f 74 | != noEr|r)...got|
|00000cf0| 6f 20 62 61 69 6c 3b 0d | 09 6d 79 4c 6f 63 61 74 |o bail;.|.myLocat|
|00000d00| 69 6f 6e 2e 68 20 09 3d | 20 28 35 20 2a 20 6b 53 |ion.h .=| (5 * kS|
|00000d10| 70 72 69 74 65 54 72 61 | 63 6b 57 69 64 74 68 20 |priteTra|ckWidth |
|00000d20| 2f 20 38 29 20 2d 20 28 | 6b 50 65 6e 67 75 69 6e |/ 8) - (|kPenguin|
|00000d30| 57 69 64 74 68 20 2f 20 | 32 29 3b 0d 09 6d 79 4c |Width / |2);..myL|
|00000d40| 6f 63 61 74 69 6f 6e 2e | 76 20 09 3d 20 28 6b 53 |ocation.|v .= (kS|
|00000d50| 70 72 69 74 65 54 72 61 | 63 6b 48 65 69 67 68 74 |priteTra|ckHeight|
|00000d60| 20 2f 20 34 29 20 2d 20 | 28 6b 50 65 6e 67 75 69 | / 4) - |(kPengui|
|00000d70| 6e 48 65 69 67 68 74 20 | 2f 20 32 29 3b 0d 09 69 |nHeight |/ 2);..i|
|00000d80| 73 56 69 73 69 62 6c 65 | 09 09 3d 20 74 72 75 65 |sVisible|..= true|
|00000d90| 3b 0d 09 6d 79 4c 61 79 | 65 72 09 09 09 3d 20 33 |;..myLay|er...= 3|
|00000da0| 3b 0d 09 6d 79 49 6e 64 | 65 78 09 09 09 3d 20 6b |;..myInd|ex...= k|
|00000db0| 50 65 6e 67 75 69 6e 46 | 6f 72 77 61 72 64 49 6e |PenguinF|orwardIn|
|00000dc0| 64 65 78 3b 0d 09 6d 79 | 45 72 72 20 3d 20 53 65 |dex;..my|Err = Se|
|00000dd0| 74 53 70 72 69 74 65 44 | 61 74 61 28 6d 79 50 65 |tSpriteD|ata(myPe|
|00000de0| 6e 67 75 69 6e 54 77 6f | 2c 20 26 6d 79 4c 6f 63 |nguinTwo|, &myLoc|
|00000df0| 61 74 69 6f 6e 2c 20 26 | 69 73 56 69 73 69 62 6c |ation, &|isVisibl|
|00000e00| 65 2c 20 26 6d 79 4c 61 | 79 65 72 2c 20 26 6d 79 |e, &myLa|yer, &my|
|00000e10| 49 6e 64 65 78 2c 20 4e | 55 4c 4c 2c 20 4e 55 4c |Index, N|ULL, NUL|
|00000e20| 4c 2c 20 6d 79 41 63 74 | 69 6f 6e 73 29 3b 0d 09 |L, myAct|ions);..|
|00000e30| 69 66 20 28 6d 79 45 72 | 72 20 21 3d 20 6e 6f 45 |if (myEr|r != noE|
|00000e40| 72 72 29 0d 09 09 67 6f | 74 6f 20 62 61 69 6c 3b |rr)...go|to bail;|
|00000e50| 0d 00 00 00 20 00 00 00 | 01 00 00 00 04 00 00 00 |.... ...|........|
|00000e60| 00 00 00 00 01 54 45 58 | 54 00 00 01 00 00 00 00 |.....TEX|T.......|
|00000e70| 00 00 00 00 00 00 00 01 | 00 00 00 0e 23 00 00 0d |........|....#...|
|00000e80| 23 00 00 00 46 07 ac 3e | 30 02 5a 00 00 00 1c 00 |#...F..>|0.Z.....|
|00000e90| 46 00 01 54 45 58 54 00 | 00 00 12 64 72 61 67 00 |F..TEXT.|...drag.|
|00000ea0| 00 00 1e 01 00 ff ff 00 | 00 00 00 00 b3 45 74 00 |........|.....Et.|
|00000eb0| 80 ff ff 00 00 0c ff 00 | b3 39 f0 |........|.9. |
+--------+-------------------------+-------------------------+--------+--------+